﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddProperty.aspx.cs" Inherits="Admin_ProductMgr_AddProperty" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加属性</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <div id="fieldshow">
            <asp:GridView ID="FiledGridView" runat="server" AutoGenerateColumns="False" 
                onrowdatabound="FiledGridView_RowDataBound">
                <Columns>
                    <asp:BoundField HeaderText="序号" />
                    <asp:BoundField DataField="PropertyEName" HeaderText="属性英文名" />
                    <asp:BoundField DataField="PropertyCName" HeaderText="属性中文名" />
                    <asp:BoundField DataField="PropertyType" HeaderText="属性类型" />
                    <asp:BoundField DataField="PropertySize" HeaderText="属性大小" />
                    <asp:BoundField DataField="PropertyDisable" HeaderText="属性是否启用" />
                    <asp:BoundField DataField="PropertyDisplay" HeaderText="属性是否显示" />
                </Columns>
            </asp:GridView>
        </div>
        <div id="filedadd">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        属性英文标识：
                    </td>
                    <td>
                        <asp:TextBox ID="txtPropertyEName" runat="server" EnableViewState="False"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtPropertyEName" Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        属性中文标识：</td>
                    <td>
                        <asp:TextBox ID="txtPropertyCName" runat="server" EnableViewState="False"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtPropertyCName" Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        属性类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="drpPropertyType" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="drpPropertyType_SelectedIndexChanged">
                            <asp:ListItem Value="varchar">字符型</asp:ListItem>
                            <asp:ListItem Value="int">数字型</asp:ListItem>
                            <asp:ListItem Value="datetime">日期型</asp:ListItem>
                            <asp:ListItem Value="text">文本型</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        属性大小：
                    </td>
                    <td>
                        <asp:TextBox ID="txtPropertySize" runat="server" EnableViewState="False"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        是否启用：
                    </td>
                    <td>
                        <asp:RadioButton ID="rbtnUnDisable" runat="server" Checked="True" GroupName="0" 
                            Text="是" />
                        <asp:RadioButton ID="rbtnDisable" runat="server" GroupName="0" Text="否" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        是否显示：
                    </td>
                    <td>
                        <asp:RadioButton ID="rbtnDisplay" runat="server" Checked="True" GroupName="1" 
                            Text="是" />
                        <asp:RadioButton ID="rbtnUnDisplay" runat="server" GroupName="1" Text="否" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <dxe:ASPxButton ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="添加" 
                            EnableViewState="False">
                        </dxe:ASPxButton>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
